package net.towee.model.repo;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * Patch for getting old version of document
 * 
 * @author c58
 */
public interface DocumentPatch extends IsSerializable  {
	/**
	 * @return patch id
	 */
	String getId();

	/**
	 * Patch given document and return previous revision of given document
	 * 
	 * @param newText
	 * @return
	 */
	DocumentData patchDocument(DocumentData doc);
}
